home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PRINTER
/
MSLXV101.ARJ
/
MSLXV101.DOC
< prev
next >
Wrap
Text File
|
1991-06-24
|
10KB
|
296 lines
MIC Source Lister - Extended
Version 1.01
(c) Copyright 1991 by Maya Integrated Coventures
- All rights reserved.
Maya Integrated Coventures (MIC)
18901 Blue Heron Lane
Gaithersburg, MD 20879-1771
MSLXV101.DOC INTRODUCTION
Purpose of MIC_SLX
MIC Source Lister - Extended (MIC_SLX) is a utility to print
ASCII text program source files. It is specifically intended to
provide more user control over the output format than is normally
provided by various source editors. It also allows printing of
ASCII text files from the command line without having to start an
editor or word processor.
It has been particularly useful (so far) in helping maintain
current hard copy listings of source code -- the datetime feature
helps to keep track of the most current version. MIC_SLX listings
also have been used to aid in debugging compilation errors in
non-interactive environments, using the line numbering feature.
For example, on a recent mainframe project, we used the
communications software (in this case, Procomm Plus) to capture
images of the code from the mainframe editor, and then used MIC_SLX
to print the source. The source errors, which were referred to by
"card" numbers, could then be readily located.
MIC intends future releases to contain further features to aid
programmers in their various tasks. Some of the presently planned
enhancements are described later in this document.
A Note on Source Languages
MIC_SLX is specifically designed to produce useful output of
a program source text to the screen or to a printer. As such, it
attempts a primitive parsing of the source text if a line of source
exceeds the width of the specified output device -- this is
intended to make a line split at an intelligent point, thereby
improving readability.
Limitations
At the present time, MIC_SLX does not attempt to determine the
type of file a user is attempting to print. Therefore, you may get
some very bizarre results if you try to print, for example, an .EXE
file, or other non-text file. This means that you should save the
source as an ASCII text file if you intend to print it using
MIC_SLX. For example, if you are using Microsoft QuickBASIC, you
should use the Text Readable by Other Programs option when saving
your source files.
LEGAL MATTERS
A Note on Shareware
MIC_SLX is distributed as shareware. As such, it is
distributed through the user community without copy protection and
with right of free evaluation prior to purchase. You may make
copies and distribute them to other people as long as (1) you do
not charge a fee for this software, (2) you do not alter it or any
of the accompanying files, and (3) you provide a complete copy of
the program and the accompanying files. A complete list of the
contents for this version is included below under Packing List.
Although you have received a copy of this software free of
charge, a great deal of effort and money has gone into its
preparation and distribution. If you should find this program of
use, then you should register your copy with MIC -- this will
enable us to continue to refine and improve this product to better
serve your needs, and the needs of other users as well. If you use
MIC_SLX regularly, or if you make commercial use of this product,
MIC expects you to register your copy.
Registration
MIC Software appreciates your use of this program. If you
find it is useful and would like to support its continued
refinement, please send a check or money order for $20.00 (US) to:
Maya Integrated Coventures
18901 Blue Heron Lane
Gaithersburg, MD 20879-1771
In return, you will receive a copy of the most recent version of
MIC_SLX, along with some related utilities and information about
other MIC products. Please specify the version (1.01) & whether
you want 5 1/4 or 3 1/2 inch diskettes.
Registration of your copy of MIC Source Lister - Extended also
allows you access to free support: currently available by mail, or
through CompuServe.
Packing List
- MIC_SLX.EXE -- The executable program.
- READ.ME -- Getting Started.
- PRINTDOC.BAT -- Batch File to Print Documentation using
MIC_SLX.
- MSLXV101.DOC -- This document. USING THE PROGRAM
Installation
For version 1.01, the program MIC_SLX.EXE is the only required
file. You should load it to a convenient directory on your working
disk. This program may be renamed for convenience of your use with
no unpleasant side effects -- however, the renamed version should
not be distributed to another user (see LEGAL MATTERS).
Command Line Format
The syntax of the command line is:
mic_slx [filename] [options]
Where:
[filename] is optional, the program will prompt if not
entered. The filename should contain the full
path if not in the current default directory.
[options] available are as follows:
/h = display this help screen -- overrides all
other options
/nol = no line numbers or level numbers displayed
Default is to print sequential line numbers and a
level number of 0 for each physical line of the
source, successive output lines split from the same
original source line are indicated with a
sequence/level of "+". (Note: Level numbers are
reserved for use when the parsing routines are
enhanced in future releases.)
/p = print file listing on PRN, default device
is SCRN:.
/lc = use C Language delimiters, default is
BASIC
Affects the choice of tokens used as the point at
which to split a line that exceeds the output width.
When a line split must occur because the length of
the source text exceeds the display/print length
limit, the program attempts to split the line at a
convenient delimiter to improve the readability of
the output. Version 1.01 recognizes delimiters for
two languages, BASIC and C. The default settings
are for BASIC, the C delimiters are used if the
program is executed with the /LC option (for
Language C). Future versions of MIC_SLX will
enhance the recognition of language tokens for these
two languages, as well as recognize additional
languages -- Ada(R) and PASCAL delimiters are
scheduled for inclusion in the next major release.
/off = disable automatic indentation on line
split
Default is to indent successive splits of the line
at least as far as the first "printable" character
in the first line.
/w [length] = set maximum line width to [length]
characters
This parameter defines the width of the print image.
This value can be reset depending on the number of
characters you can display on a single line of the
output device. For example, if you use compressed
text on your printer, you can set the value to 132
to print line printer images.
Default for SCRN: is 80
Default for PRN is 78
The /w parameter must be large enough to accommodate
at least 10 characters of the source text. The
necessary length can be computed by adding the /m
parameter plus 20 if the /nol is not present, or 10
if the /nol option is set. The default values for
these parameters depend on whether the /p option is
set, as follows:
with /p, /w78/m10 without /p, /w80/m0.
/b [length] = set maximum number of lines per page
to [length]
Default for SCRN: is 20
Default for PRN is 55
/m [length] = set left margin to [length]
characters
Default for SCRN: is 0
Default for PRN is 10 PAST, PRESENT & FUTURE
History
Version 1.01 (June 1991)
- Changed LPT1: to PRN for /P option.
- Improved parameter validation.
- Added /M (left margin) and /OFF (no auto indent) options
- Repaired bug in line split when auto indent exceeded line
width.
- Added /W (line width) and /B (page length) options.
Version 1.00 (April 1991)
- Added help /H and no numbering /NOL options. Enhanced
print controls.
- Added scan for newpage character.
- Expanded setting of defaults -- added /LC & /P options.
- Improved file datetime handling.
Version Alpha
- Added file date and time to 1st page header.
- Split of line exceeding linewidth, and partial handling
of tabs.
- Stripping of filename from COMMAND$ & expanded print
controls, printing to screen only.
Planned Enhancements for Future Releases:
- Additional language recognition, e.g., Ada(R) and PASCAL.
- Multiple file print (DOS wildcard support).
- "Batch" files for parameter and file input.
- Translation of "special" characters.
- Selective printing of text.